﻿<dxc:DXWindow x:Class="ChatApp.Client.Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
        xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
		xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        Title="Login" Height="489" Width="350"
        Closed="DXWindow_Closed" WindowStyle="ToolWindow" ResizeMode="NoResize">
    <dxc:DXWindow.ContextMenu>
        <ContextMenu />
    </dxc:DXWindow.ContextMenu>
    
    
    <Window.Resources>
        <Style TargetType="{x:Type Label}">
            <Setter Property="VerticalAlignment" Value="Center" ></Setter>
            <Setter Property="Margin" Value="3,3" ></Setter>
        </Style>
        <Style TargetType="{x:Type dxe:TextEdit}">
            <Setter Property="Margin" Value="2,2" ></Setter>
        </Style>
    </Window.Resources>
    
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="70"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="37"></RowDefinition>
            <RowDefinition Height="82"></RowDefinition>
            <RowDefinition Height="102*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="317"></ColumnDefinition>
            <ColumnDefinition Width="341*"></ColumnDefinition>
            <ColumnDefinition Width="20"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <dxb:BarManager Name="barManager" Grid.ColumnSpan="3" dx:ThemeManager.ThemeName="Office2007Blue" VerticalAlignment="Top" HorizontalAlignment="Center" CreateStandardLayout="True" Margin="0,0,0,13" >
            <dxb:BarManager.Categories>
                <dxb:BarManagerCategory Name="File" />
                <dxb:BarManagerCategory Name="Edit" />
                <dxb:BarManagerCategory Name="Help" />
                <dxb:BarManagerCategory Name="Built-in Menus" />
            </dxb:BarManager.Categories>
            <dxb:BarManager.Items>
                
                <dxb:BarButtonItem Name="bExit" CategoryName="File" ItemClick="bExit_ItemClick" Content="Exit" KeyGesture="Ctrl+X"/>

                <dxb:BarButtonItem Name="bHome" CategoryName="Help" Content="Developer Express on the Web"/>
                <dxb:BarButtonItem Name="bAbout" CategoryName="Help" Content="About"/>

                <dxb:BarSubItem Name="smFile" CategoryName="Built-in Menus" Content="File">
                    <dxb:BarSubItem.ItemLinks>
                        
                        <dxb:BarButtonItemLink BarItemName="bExit"/>
                    </dxb:BarSubItem.ItemLinks>
                </dxb:BarSubItem>
                <dxb:BarSubItem Name="smHelp" CategoryName="Built-in Menus" Content="Help">
                    <dxb:BarSubItem.ItemLinks>
                        <dxb:BarButtonItemLink BarItemName="bHome"/>
                        <dxb:BarItemLinkSeparator/>
                        <dxb:BarButtonItemLink BarItemName="bAbout"/>
                    </dxb:BarSubItem.ItemLinks>
                </dxb:BarSubItem>
            </dxb:BarManager.Items>
            <dxb:BarManager.Bars>
                <dxb:Bar Caption="MainMenu" x:Name="MainMenu" IsMainMenu="True" UseWholeRow="True">
                    <dxb:Bar.DockInfo>
                        <dxb:BarDockInfo ContainerType="Top"/>
                    </dxb:Bar.DockInfo>
                    <dxb:Bar.ItemLinks>
                        <dxb:BarSubItemLink BarItemName="smFile"/>
                        <dxb:BarSubItemLink BarItemName="smHelp"/>
                    </dxb:Bar.ItemLinks>
                </dxb:Bar>
            </dxb:BarManager.Bars>
            
        </dxb:BarManager>

        <Label Content="Đăng nhập tài khoản" Name="label1" Grid.Row="1"  HorizontalAlignment="Left" FontSize="20" Foreground="White" FontWeight="Bold" Margin="9,15,0,19" />
        <Label Content="Tài khoản" Name="label2" Height="25" FontSize="14" FontWeight="DemiBold" Margin="11,8,29,2" Foreground="#B2E7F7" Grid.Row="2" />
        <dxe:TextEdit Grid.Row="3" Grid.Column="0" Name="txtTenDangNhap" Height="30" Margin="13,1,17,3" FontSize="14" FontWeight="DemiBold" KeyDown="txtTenDangNhap_KeyDown" />
        <Label Content="Mật khẩu"  Name="label3" Height="27" Grid.Row="4" FontSize="14" FontWeight="DemiBold" Margin="9,9,31,2" Foreground="#B2E7F7"/>
        <dxe:PasswordBoxEdit Grid.Row="5" Grid.Column="0" Name="txtMatKhau" Height="30" Margin="13,3,18,3" FontSize="14" FontWeight="DemiBold" KeyDown="txtMatKhau_KeyDown" />
        <Button Name="btnDangNhap" Grid.Row="6" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="109" Height="30" FontSize="14" Margin="13,0,0,2" Click="btnDangNhap_Click" Background="#FFCBDEFC" BorderBrush="{x:Null}" Foreground="#9B000000"  OpacityMask="{x:Null}">Đăng nhập</Button>
        <Button Name="btnDangKy" Grid.Row="6" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="158" Height="30" FontSize="14" Margin="0,0,18,2" Background="#FFCBDEFC" BorderBrush="{x:Null}" Foreground="#9B000000"  OpacityMask="{x:Null}" Click="btnDangKy_Click">Đăng ký tài khoản</Button>
        <Label Name="lblDangKyNguoiDung" Content="Bạn hãy chọn đăng ký để tạo một tài khoản mới !" Grid.Row="6" HorizontalContentAlignment="Left" 
               Foreground="White" FontWeight="Heavy" FontSize="11" Margin="13,0,18,26" />
        
    </Grid>
    <dxc:DXWindow.Background>
        <ImageBrush ImageSource="/ChatApp.Client;component/Images/Untitled1.png" />
    </dxc:DXWindow.Background>
</dxc:DXWindow>
